# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Maintainer: Martin Imobersteg <imm@gmx.ch>

pkgname=perl-crypt-smbhash
pkgver=0.12
pkgrel=10
pkgdesc="Perl/CPAN Module Crypt::SmbHash : Perl-only implementation of lanman and nt md4 hash functions, for use in Samba style smbpasswd entries."
arch=("any")
url="https://search.cpan.org/dist/Crypt-SmbHash/SmbHash.pm"
license=("GPL")
source=('https://search.cpan.org/CPAN/authors/id/B/BJ/BJKUIT/Crypt-SmbHash-0.12.tar.gz')
md5sums=('a6e3f4d65a89bfcc9ba0c69691e6105b')

build() {
  cd "$srcdir"/Crypt-SmbHash-0.12
  PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
  make
}

package() {
  cd "$srcdir"/Crypt-SmbHash-0.12
  make pure_install doc_install DESTDIR="$pkgdir"
  find "$pkgdir" -name '.packlist' -delete
  find "$pkgdir" -name '*.pod' -delete
}
